package pers.sen.esdemo.config;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author Jason
 * @version 1.0.0
 * @date 2020/11/24 10:15
 * @Description TODO
 */
@Configuration
public class PageHelperConfig {
    @Bean
    public PaginationInterceptor paginationInterceptor(){

        PaginationInterceptor paginationInterceptor = new PaginationInterceptor();
        // 无限制分页条数
        paginationInterceptor.setLimit(-1);
        return paginationInterceptor;
    }
}
